/**
 * @Author: yy
 * @Date: 2019/8/12
 * @Last Modified by:   yy
 * @Last Modified time: 2019-08-12 16:00:00
 */
import axios from '@/api/fetch';
import SERVER from './../../server'

// 查询细分定义列表
export const queryInformationChanel = params => axios.get(`${SERVER.CYXDMS_CLUE}/customerManage/channelSubdvision`, { params });
// 新增细分定义
export const addInformationChanel = params => axios.post(`${SERVER.CYXDMS_CLUE}/customerManage/channelSubdvision`, params);

// 根据id获取细分定义
export const getInformationChanelById = ( id , params) => axios.get(`${SERVER.CYXDMS_CLUE}/customerManage/channelSubdvision/${id}`, {params});

// 修改细分定义
export const ediInformationChanel = ( id , params) => axios.put(`${SERVER.CYXDMS_CLUE}/customerManage/channelSubdvision/${id}`, params );

